<script setup lang="ts">
import {computed} from "vue";
import * as marked from 'marked'; // 使用 import * as marked

const props = defineProps({
  content: {type: String, default: ""}
})
const parsedMarkdown = computed(() => {
  return marked.parse(props.content);
});

</script>

<template>
  <div v-html="parsedMarkdown"></div>
</template>

<style scoped>

</style>